package com.huangfu.learning.javabase.java.restructure.polymorphicreplaceswitch.polymorphic;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/11/13
 * Time: 10:49
 * Version: 1.0
 * Description:员工类型,抽象类，具体类型继承该类，容易扩展；如果要增加一个员工类型，直接增加一个子类即可，没有代码耦合
 **/
public abstract class EmployeeType {
    //支付薪资抽象方法，具体的员工类型具体实现
    abstract int payAmount();
}
